home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 June / PersonalComputerWorld-June2009-CoverdiscCD.iso / Software / Freeware / Adobe AIR 1.5.1 / AdobeAIRInstaller.exe / setup.swf / scripts / mx / managers / ToolTipManager.as < prev    next >
Encoding:
Text File  |  2009-02-12  |  4.0 KB  |  152 lines

  1. package mx.managers
  2. {
  3.    import flash.display.DisplayObject;
  4.    import flash.events.EventDispatcher;
  5.    import mx.core.IToolTip;
  6.    import mx.core.IUIComponent;
  7.    import mx.core.Singleton;
  8.    import mx.core.mx_internal;
  9.    import mx.effects.IAbstractEffect;
  10.    
  11.    use namespace mx_internal;
  12.    
  13.    public class ToolTipManager extends EventDispatcher
  14.    {
  15.       private static var implClassDependency:ToolTipManagerImpl;
  16.       
  17.       private static var _impl:IToolTipManager2;
  18.       
  19.       mx_internal static const VERSION:String = "3.0.0.0";
  20.       
  21.       public function ToolTipManager()
  22.       {
  23.          super();
  24.       }
  25.       
  26.       mx_internal static function registerToolTip(param1:DisplayObject, param2:String, param3:String) : void
  27.       {
  28.          impl.registerToolTip(param1,param2,param3);
  29.       }
  30.       
  31.       public static function get enabled() : Boolean
  32.       {
  33.          return impl.enabled;
  34.       }
  35.       
  36.       public static function set enabled(param1:Boolean) : void
  37.       {
  38.          impl.enabled = param1;
  39.       }
  40.       
  41.       public static function createToolTip(param1:String, param2:Number, param3:Number, param4:String = null, param5:IUIComponent = null) : IToolTip
  42.       {
  43.          return impl.createToolTip(param1,param2,param3,param4,param5);
  44.       }
  45.       
  46.       public static function set hideDelay(param1:Number) : void
  47.       {
  48.          impl.hideDelay = param1;
  49.       }
  50.       
  51.       public static function set showDelay(param1:Number) : void
  52.       {
  53.          impl.showDelay = param1;
  54.       }
  55.       
  56.       public static function get showDelay() : Number
  57.       {
  58.          return impl.showDelay;
  59.       }
  60.       
  61.       public static function destroyToolTip(param1:IToolTip) : void
  62.       {
  63.          return impl.destroyToolTip(param1);
  64.       }
  65.       
  66.       public static function get scrubDelay() : Number
  67.       {
  68.          return impl.scrubDelay;
  69.       }
  70.       
  71.       public static function get toolTipClass() : Class
  72.       {
  73.          return impl.toolTipClass;
  74.       }
  75.       
  76.       mx_internal static function registerErrorString(param1:DisplayObject, param2:String, param3:String) : void
  77.       {
  78.          impl.registerErrorString(param1,param2,param3);
  79.       }
  80.       
  81.       mx_internal static function sizeTip(param1:IToolTip) : void
  82.       {
  83.          impl.sizeTip(param1);
  84.       }
  85.       
  86.       public static function set currentTarget(param1:DisplayObject) : void
  87.       {
  88.          impl.currentTarget = param1;
  89.       }
  90.       
  91.       public static function set showEffect(param1:IAbstractEffect) : void
  92.       {
  93.          impl.showEffect = param1;
  94.       }
  95.       
  96.       private static function get impl() : IToolTipManager2
  97.       {
  98.          if(!_impl)
  99.          {
  100.             _impl = IToolTipManager2(Singleton.getInstance("mx.managers::IToolTipManager2"));
  101.          }
  102.          return _impl;
  103.       }
  104.       
  105.       public static function get hideDelay() : Number
  106.       {
  107.          return impl.hideDelay;
  108.       }
  109.       
  110.       public static function set hideEffect(param1:IAbstractEffect) : void
  111.       {
  112.          impl.hideEffect = param1;
  113.       }
  114.       
  115.       public static function set scrubDelay(param1:Number) : void
  116.       {
  117.          impl.scrubDelay = param1;
  118.       }
  119.       
  120.       public static function get currentToolTip() : IToolTip
  121.       {
  122.          return impl.currentToolTip;
  123.       }
  124.       
  125.       public static function set currentToolTip(param1:IToolTip) : void
  126.       {
  127.          impl.currentToolTip = param1;
  128.       }
  129.       
  130.       public static function get showEffect() : IAbstractEffect
  131.       {
  132.          return impl.showEffect;
  133.       }
  134.       
  135.       public static function get currentTarget() : DisplayObject
  136.       {
  137.          return impl.currentTarget;
  138.       }
  139.       
  140.       public static function get hideEffect() : IAbstractEffect
  141.       {
  142.          return impl.hideEffect;
  143.       }
  144.       
  145.       public static function set toolTipClass(param1:Class) : void
  146.       {
  147.          impl.toolTipClass = param1;
  148.       }
  149.    }
  150. }
  151.  
  152.